package com.xjtu.dto.billRecord;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xjtu.dto.billRecord.BillDetailDto;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Past;
import java.time.LocalDateTime;

@AllArgsConstructor

@Builder
@Data
public class BillDto {
    /**
     * FK
     */

    @NotNull
    private Integer elderlyId;
    /**
     * 总金额
     */

    @NotNull
    private Double totalAmount;
    /**
     * 备注
     */

    private String remark;
    /**
     * 创建时间
     */

    @Past
    @JsonFormat(shape = JsonFormat.Shape.STRING , pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    private LocalDateTime createTime;



    private Integer selectBathLevel;

    private Integer selectCleanClothes;

    private Integer selectCleanLowerPartBody;

    private Integer selectFaceClean;

    private Integer selectFootLevel;

    private Integer selectMouthLevel;

    private Integer selectNursingLevel;

    private Integer selectRoom;

    private Integer selectToiletLevel;

    private Integer selectWearingLevel;

    private Integer selectWheelchairLevel;

    public BillDto() {
        this.createTime = LocalDateTime.now();
    }
}
